add: initialize starter framework function encode() variables

The encode function encodes messages, but does not pad with '=' or
encode the extra bytes in messages that are not a multiple of 3.