Decode response body before parsing json

The encoding argument is deprecated in python3
and fails silently:

The ``encoding`` argument is ignored and deprecated.

So instead the bytestring is decoded before being handed
off to the json parser.
Use the passed in encoding
Merge branch 'json-utf8' into develop

* json-utf8:
  Use the passed in encoding
  Decode response body before parsing json