code: public static CharSequence encode(CharSequence in) throws IOException{
  		if(in == null) return null;
  		// Assume that some but not all characters need to be escaped.
  		StringBuilder sb = new StringBuilder(in.length() * 2);
  		encode(in, sb);
  		return sb;
  	}
docs: Convenience method for {@link #encode(CharSequence, Appendable)}.