code: @Deprecated
    public static void write(String str, final OutputStream outputStream) throws IOException {
      write(str, outputStream, Charset.defaultCharset());
    }
docs: Writes the specified string to stream with buffering and closes the stream.
  Writes in the default charset: Charset.defaultCharset().
  
  @param str String to write.
  @param outputStream Stream to write to.
  @throws IOException If there is an exception while writing.
  @deprecated it is always safer to supply a charset. See
  {@link #write(String, OutputStream, Charset)}.