Fixed getting null for object responses

When the response is a object, the utf8_decode returns a null object. According to the spec, the result could be anything sent by the server.