use Encoder for converting TicTacToeMessage to text