code: public static String encode (String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp)
      {
          return encode(string, encodeNewline, encodeSubsequentBlanksToNbsp, true);
      }
docs: Variant of {@link #encode} where encodeNbsp and encodeNonLatin are true