Fix error when uploading files with unicode filenames