Rename invalid filenames