It totally would make sense, except for the unfortunate fact that none of the encoding functions I tried actually encode parentheses (since they aren't supposed to require encoding).  This was the case with querystring.encode() and encodeURIComponent(), at least.