code: public static ByteBuffer bytes(String s)
      {
          return ByteBuffer.wrap(s.getBytes(StandardCharsets.UTF_8));
      }
docs: Encode a String in a ByteBuffer using UTF_8.
  
  @param s the string to encode
  @return the encoded string