Add support for non-utf8 filenames