code: function encodeUriSegment(s) {
      return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
  }
docs: This function should be run on any URI segment as well as the key and value in a key/value
  pair for matrix params. In the following URL, you need to call encodeUriSegment on "html",
  "mk", and "mv":
  
  http://www.site.org/html;mk=mv?k=v#f