docs: public static void replaceBadXmlCharactersBySpace(char[] cbuf, int off, int len) {
          for (int i = off; i < off + len; i++) {
              if (isBadXmlCharacter(cbuf[i])) {
                  cbuf[i] = '\u0020';
              }
          }
      }