public static String replaceChokableCharsWithEntities(String instring) {
    { OutputStringStream ss = OutputStringStream.newOutputStringStream();

      GuiServer.writeHtmlQuotingChokableCharacters(ss.nativeStream, instring);
      return (ss.theStringReader());
    }
  }