Fixes encoding of UTF8 filenames