whole_func_string: function encodePath(path) {
    var segments = path.split('/'),
        i = segments.length;
  
    while (i--) {
      // decode forward slashes to prevent them from being double encoded
      segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
    }
  
    return segments.join('/');
  }
func_code_string: function encodePath(path) {
    var segments = path.split('/'),
        i = segments.length;
  
    while (i--) {
      // decode forward slashes to prevent them from being double encoded
      segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
    }
  
    return segments.join('/');
  }
func_documentation_string: Encode path using encodeUriSegment, ignoring forward slashes
  
  @param {string} path Path to encode
  @returns {string}