Add test for having utf8 filenames in the cache

cc @DeepDiver1975 @karlitschek @bantu