public static String toQuotedString(byte[] bytes) {
		StringBuilder builder = new StringBuilder();
		for (byte b : bytes) {
			appendCharConvertedToEscapeSequence((char) (b & 0xff), 1, builder);
		}
		String str = builder.toString();
		if (bytes.length == 1) {
			str = str.replace("'", "\\'");
			return "'" + str + "'";
		}
		str = str.replace("\"", "\\\"");
		return "\"" + str + "\"";
	}
Generate a quoted string from US-ASCII character bytes assuming 1-byte chars.
<p>
Special characters and non-printable characters will be escaped using C character escape
conventions (e.g., \t, \n, \\uHHHH, etc.). If a character size other than 1-byte is required
the alternate form of this method should be used.
<p>
The result string will be single quoted (ie. "'") if the input byte array is 1 byte long,
otherwise the result will be double-quoted ('"').

@param bytes character string bytes
@return escaped string for display use
Ghidra/Framework/Generic/src/main/java/ghidra/util/StringUtilities.java