Fixed problem with non ascii characters in filenames