private static void appendHexEncoded(StringBuilder sb, char c) {
		if (c < 0x80) {
			sb.append('%').append(hexdigit[c >> 4]).append(hexdigit[c & 0x0f]);
			return;
		}
		sb.append(URLEncoder.encode("" + c, StandardCharsets.UTF_8));
	}
Returns a decoded version of the input stream where "%nn" escape sequences are
replaced with their actual characters, using UTF-8 decoding rules.

@param s string with escape sequences in the form "%nn", or null.
@return string with all escape sequences replaced with native characters, or null if
original parameter was null.
@throws MalformedURLException if bad escape sequence format.
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FSUtilities.java