remove bad characters