get rid of illegal chars