As per the changes in commit 005b3a05 and discussions in !800, gimp_locale_directory() returns a string in the OS encoding for all but Windows (UTF-8), i.e. the "filename" type in GIR annotations.