detect bad chars