Ensures that the XML encoding only happens if ENT_XML1 is defined