I'm pretty sure that should be HtmlEncode. The MsgId gets decoded earlier and the return message should surely be encoded not decoded? I'm having problems with a case where I have to return XML and an ...
The change in decoder output should matter only if you store binary data instead of UTF-16 data in strings. To explicitly control this behavior, set the aspnet:AllowRelaxedUnicodeDecoding attribute of ...