encode sent messages as utf-8