When I try to write UTF-8 Strings into an XML file using DomDocument it actually writes the hexadecimal notation of the string instead of the string itself.
for exam
Apparently passing the documentElement as $node to saveXML works around this, although I can't say I understand why.
e.g.
$dom->saveXML($dom->documentElement);
rather than:
$dom->saveXML();
Source: http://www.php.net/manual/en/domdocument.savexml.php#88525