some fixes for extended characters in filenames