delete bad characters