Encode encodes the given message.
Encode may expect a specific type of message, and will error if this type is not given.
Uint8List encode(Object message);