code: public static void print(Object o, OutputStream outs, boolean typeheader) throws IOException {
  		OutputStreamWriter w=new OutputStreamWriter(outs,"UTF-8");
  		print(o,w,typeheader);
  		w.flush();
  	}
docs: Prettyprint the object to the outputstream. (UTF-8 output encoding is used)