code: func pathEscape(path string) string {
  	u := url.URL{Path: path}
  	return u.EscapedPath()
  }
docs: // note that this is NOT the same as url.PathEscape in golang 1.8,
  // as this preserves / and url.PathEscape converts / to %2F