Fix Entity::SerializeToXMLString to actually produce output.