Fix hashing of file names containing unicode characters.