Fixed DOMDocument::createElement(): unterminated entity reference

createElement($name, $value) does not encode the value, replaced
with a TextNode element.
Merge pull request #24 from tuempeltaucher/master

Fixed DOMDocument::createElement(): unterminated entity reference