Send XML after JSON messages, not encoded as a JSON string

Requested by Bastian Eicher.