code: public static String base64Encode(final String value) {
          validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
          return Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));
      }
docs: Encodes data with MIME base64.
  
  @param value The data to encode
  @return The encoded String