Updated the request() method.

- Made it so that GET and DELETE requests use url-encoded query parameters instead of JSON-encoded.
- Fixed an issue with the handling of a decryption error where it would fall through to the JSON decoder and fail too late.