Fixing the bad chars in script