gist-logs: fix up encoding before passing the response body to OkJson

Fixes #30519.