docs: private static char[] getCharsFromStringBuilder(StringBuilder sbuf) {
          final int length = sbuf.length();
          char[] array2 = new char[length];
          sbuf.getChars(0, length, array2, 0);
          return array2;
      }