Implement decoding and encoding messages
Split out utility functions to a separate module