Fix message encoding for utf-8