remove invalid char