code: public static BufferedWriter createBufferedWriter(OutputStream stream)
    {
      try {
        return new BufferedWriter(new OutputStreamWriter(stream, "UTF-8"));
      }
      catch(UnsupportedEncodingException unused) {
        throw new BugError("Unsupported UTF-8 ecoding.");
      }
    }
docs: Create buffered writer from bytes stream using UTF-8 charset. This library always uses UTF-8 encoding and this
  method does not rely on JVM default since there is no standard way to enforce it. JRE specification states that
  <code>file.encoding</code> is not the standard way to set default charset and to use host settings.
  
  @param stream input stream.
  @return newly created buffered reader.