If you want to set the charset of the outputed xml, simply set the encoding attribute like this :
<?php simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><xml/>'); ?>
The generated xml outputed by $xml->asXML will containt accentuated characters like 'é' instead of é.
Hope this help