Fixed crash with non-english filenames