Send percent-encoded JSON rather than query params

If/when this gets through review, I'll follow up with a change for the
server-side code.

Change-Id: I66042e439ab8f7c0bd84cd5e94b812474814b6dd