a script that removes invalid characters from a file