Encode XML special chars

XML special chars like <, >, &, " and ' in values are nor encoded when making the XML Envelope.