Fix message string encoding issue.