removing bad char