Unescape SOAP envelope when creating message

Correctly unescape SOAP envelope received from database when creating message

Relates #330