This is gross, but restify is just astoundingly intolerant of any non alphanumeric characters in URLs, even ones that should be permitted.  So unfortunately neither encodeURIComponent nor querystring.encode catch these characters, meaning this is necessary, as far as I can tell.