private static boolean codePointNeedsEscape(int codepoint) {
		int characterClass = Character.getType(codepoint);
		switch (characterClass) {
			case Character.SPACE_SEPARATOR:
				if (codepoint == 0x20) {
					return false;		// Only the ASCII space is not escaped
				}
				return true;
			case Character.COMBINING_SPACING_MARK:
			case Character.CONTROL:
			case Character.ENCLOSING_MARK:
			case Character.FORMAT:
			case Character.LINE_SEPARATOR:
			case Character.NON_SPACING_MARK:
			case Character.PARAGRAPH_SEPARATOR:
			case Character.PRIVATE_USE:
			case Character.SURROGATE:
			case Character.UNASSIGNED:
				return true;
		}
		return false;
	}
Return true for any unicode codepoint that needs to be represented with an escape sequence
@param codepoint is the code point value
@return true if the codepoint needs to be escaped
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/ConvertCharAction.java