public static void encodeComponent(StringBuilder buf, String s) {
        final int len = s.length();
        for (int i = 0; i < len; i++) {
            final char c = s.charAt(i);
            if (SAFE_OCTETS[c] == 0) {
                if (i != 0) {
                    buf.append(s, 0, i);
                }
                encodeUtf8Component(buf, s, i);
                return;
            }
        }
        buf.append(s);
    }
Encodes the specified string using
<a href="https://datatracker.ietf.org/doc/html/rfc3986#section-2.1">Percent-Encoding</a> and appends it to the
specified {@link StringBuilder}.
core/src/main/java/com/linecorp/armeria/internal/common/PercentEncoder.java