code: function (sPart, bEncodeEquals) {
  			var sEncoded = encodeURI(sPart)
  					.replace(rAmpersand, "%26")
  					.replace(rHash, "%23")
  					.replace(rPlus, "%2B");
  			if (bEncodeEquals) {
  				sEncoded = sEncoded.replace(rEquals, "%3D");
  			}
  			return sEncoded;
  		}
docs: Encodes a query part, either a key or a value.
  
  @param {string} sPart
  The query part
  @param {boolean} bEncodeEquals
  If true, "=" is encoded, too
  @returns {string}
  The encoded query part