Fix MSVC build.
Convert chat messages to utf-8.