Escape control chars in XmlFormat