Encode the given message into the raw message output stream format.parammessage to encodereturnraw message encoding