docs: public static void addId(final StringBuilder buf, final byte[] id, 
        final boolean close) {
      boolean backslash = false;
      for (final byte b : id) {
        buf.append((char) (b & 0xFF));
        if (b == 'E' && backslash) {  // If we saw a `\' and now we have a `E'.
          // So we just terminated the quoted section because we just added \E
          // to `buf'.  So let's put a litteral \E now and start quoting again.
          buf.append("\\\\E\\Q");
        } else {
          backslash = b == '\\';
        }
      }
      if (close) {
        buf.append("\\E");
      }
    }