Fixed issue where in JSONResponseMixin .encode(u'utf-8') is called on an object that is already a unicode object,
causing an error in the implicit .decode(), which uses 'ascii' by default.

This could cause failures in the case where the context contained some non-ascii characters.