Fix illegal characters in XML.