code: public static ByteBuffer bytes(String s, Charset charset)
  	    {
  	        return ByteBuffer.wrap(s.getBytes(charset));
  	    }
docs: Encode a String in a ByteBuffer using the provided charset.
  
  @param s the string to encode
  @param charset the String encoding charset to use
  @return the encoded string