to simplify this, you can use queryString:
'/bodega/v1/json/register/confirm?' + queryString.stringify(userInfo);
(where queryString is declared with the other requires as:
var queryString = require('querystring');