Implement the Writer interface on the Encoder type.

This allows bypassing the Message type when sending messages.