Fix for overflow, similar to NCBC-692

see: https://forums.couchbase.com/t/net-sdk-2-0-beta-could-not-bootstrap-github-tester-app/1600/3

and : http://www.couchbase.com/issues/browse/NCBC-692