Encode message in encoding specified in globals

Currently the encoding is only set on the request, but the message isn't actually converted. This leads to errors with german umlauts (For example in addressdata).