Fixed a bug with encoding responses for access tokens.