Fix issue #22
Fix generation issue with 32 bit clients and large numbers/strings
Merge pull request #23 from ircmaxell/issue_22_fix

Fix issue #22