MOBSDK-537/540

* JSON errors with OAuth (MOBSDK-540)
* SPACE in usernames (MOBSDK-537)