avoid including non-xml characters in the mi_xmlrpc response