removing bad chars