filter bad chars