start adding a little abstraction (Message class) + encoding bugfix, yes again!