added support for utf-8 messages