code: public static final Bytes of(CharSequence cs) {
      if (cs instanceof String) {
        return of((String) cs);
      }
  
      Objects.requireNonNull(cs);
      if (cs.length() == 0) {
        return EMPTY;
      }
  
      ByteBuffer bb = StandardCharsets.UTF_8.encode(CharBuffer.wrap(cs));
  
      if (bb.hasArray()) {
        // this byte buffer has never escaped so can use its byte array directly
        return new Bytes(bb.array(), bb.position() + bb.arrayOffset(), bb.limit());
      } else {
        byte[] data = new byte[bb.remaining()];
        bb.get(data);
        return new Bytes(data);
      }
    }
docs: Creates a Bytes object by copying the data of the CharSequence and encoding it using UTF-8.