Github api URL builder adds extraneous "?" when using basic auth

When using basic auth to build the client object, the uri build the path like this:

    path: '/repos/pksunkara/octonode/contents/package.json?ref=master?'

But it should be like this:

    path: '/repos/pksunkara/octonode/contents/package.json?ref=master'