code: public static InputStream toInputStream(CharSequence input, Charset encoding) {
          return toInputStream(input.toString(), encoding);
      }
docs: -----------------------------------------------------------------------