Fixed bug in url.resolve of restify.