remove bad char