code: public static void encode (Writer writer, String string) throws IOException
      {
          encode(writer, string, false, true);
      }
docs: Variant of {@link #encode} where encodeNewline is false and encodeNbsp is true.