docs: public static void encode (char[] string, int offset, int length, boolean encodeNewline, Writer writer)
          throws IOException
      {
          encode(string, offset, length, encodeNewline, true, writer);
      }