char sanitizing