added a script to rename files with invalid filenames