code: private static String getEscapedCharacter(char c) throws IOException {
  		switch(c) {
  			case '\0' : return "\\0";
  			case '\'' : return "''";
  			// Not needed inside single quotes overall: case '"' : return "\\\"";
  			case '\b' : return "\\b";
  			case '\n' : return null;
  			case '\r' : return "\\r";
  			case '\t' : return "\\t";
  			case 26   : return "\\Z";
  			case '\\' : return "\\\\";
  		}
  		if(
  			(c >= 0x20 && c <= 0x7E) // common case first
  			|| (c >= 0xA0 && c <= 0xFFFD)
  		) return null;
  		throw new IOException(ApplicationResources.accessor.getMessage("MysqlValidator.invalidCharacter", Integer.toHexString(c)));
  	}
docs: Encodes a single character and returns its String representation
  or null if no modification is necessary.  Implemented as
  <a href="https://dev.mysql.com/doc/en/string-literals.html#character-escape-sequences">Table 9.1 Special Character Escape Sequences</a>.
  
  @see MysqlValidator#checkCharacter(char)
  
  @throws  IOException  if any text character cannot be converted for use in the mysql command line