code: @Nullable protected String encode(@Nullable byte[] data) {
      return data == null ? null : Base64.getUrlEncoder().encodeToString(data);
    }
docs: Encodes data, from binary form to string.
  The default implementation performs websafe-base64 encoding (RFC 3548).