replace offending chars