Fixed problem with bad encoding in filenames