docs: def encodePathElement(element):
      """Encode a URL path element according to RFC3986."""
      return urllib.parse.quote(
          (
              element.encode('utf-8')
              if isinstance(element, str)
              else str(element)
              if isinstance(element, int)
              else element
          ),
          safe=d1_common.const.URL_PATHELEMENT_SAFE_CHARS,
      )