get rid of weird characters in script file