code: public static void copy(String in, Charset charset, OutputStream out) throws IOException {
  		Assert.notNull(in, "No input String specified");
  		Assert.notNull(charset, "No charset specified");
  		Assert.notNull(out, "No OutputStream specified");
  		Writer writer = new OutputStreamWriter(out, charset);
  		writer.write(in);
  		writer.flush();
  	}
docs: Copy the contents of the given String to the given output OutputStream.
  Leaves the stream open when done.
  @param in the String to copy from
  @param charset the Charset
  @param out the OutputStream to copy to
  @throws IOException in case of I/O errors