Message should encode special chars when creating XML node

The message should be XML encoded when it gets transformed to an XML node. For instance: we are using this library to log errors to a chat room. Errors can contain all kinds of characters, including reserved ones like < and >. This fixes the encoding of the message.