fix bad chars