fixed invalid characters in filenames