Fixed DOMDocument::createElement(): unterminated entity reference

createElement($name, $value) does not encode the value, replaced
with a TextNode element.