Web: Handle REST responses with non-Ascii characters.

Fixes #282