Encoder and decoder of your messages