Simple binary message serialization