Fixes to byte string handling in OAuth JSON routines

Got OAuth authentication and credential storage working with these fixes.