code: private String cleanUpString(String text) {
      if (StringUtils.isEmpty(text)) {
        return text;
      }
      else {
        return CONTROL_CHARS.matcher(text).replaceAll("");
      }
    }
docs: Cleans up the given string and removes all control char characters not valid for XML.
  These control chars e.g. 0x03 for UTF-8 can by pasted by copy&paste into the CMS RTE.
  @param text Text
  @return Cleaned up text