Encode messages on 2 bytes.
Merge pull request #57 from cauchymop/two-bytes

Encode messages on 2 bytes.