code: public static BinaryValue create(String data, Charset charset)
      {
          byte[] bytes = null;
          if (data != null)
          {
                  bytes = data.getBytes(charset);
          }
          return new BinaryValue(bytes);
      }
docs: Create a BinaryValue containing a copy of the supplied string
  encoded using the supplied Charset.
  
  @param data the data to copy
  @param charset the charset to use for encoding
  @return a new {@code BinaryValue}