Properly handle utf-8 filenames