JSCBC-515: Fix special characters in versions corrupting requests.
JSCBC-515: Fix special characters in versions corrupting requests.

Motivation
----------
The most recent build of Node.js has included special characters
in the version numbers that it exposes to applications.  This data
is forwarded to libcouchbase which then fails to correctly generate
a user-agent string header.

Changes
-------
Added trimming to all version numbers used when generating a
user-agent string for libcouchbase.

Change-Id: I6fc06955e64b4e010dface6c0b2ddd55b06fda04
Reviewed-on: http://review.couchbase.org/101358
Reviewed-by: Charles Dixon <e13bf4498b4994e133fd3586350658dc4a59329a@gmail.com>
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>

couchbase/couchnode,couchbase/couchnode,brett19/couchnode,brett19/couchnode,brett19/couchnode,couchbase/couchnode,couchbase/couchnode