How to change encoding for incoming messages.