Fix wire protocol coding for large messages
Merge pull request #21 from hurtonm/master

Fix wire protocol coding for large messages