URI encode username for js errors
URI encode username for js errors

Fixes gh-368

Change-Id: I8acbca5091c3a19a85986a670d5228f2ffc05b2f
Reviewed-on: https://gerrit.instructure.com/26205
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Jon Jensen <44f878afe53efc66b76772bd845eb65944ed8232@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
QA-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

roxolan/canvas-lms,HotChalk/canvas-lms,Jyaasa/canvas-lms,instructure/canvas-lms,matematikk-mooc/canvas-lms,gbleydon/canvas-lms,SwinburneOnline/canvas-lms,eCNAP/CANVAS,ShreniiNepal/shrenii_lmp,AndranikMarkosyan/lms,arrivu/qibla-ecampus,sfu/canvas-lms,djbender/canvas-lms,dgynn/canvas-lms,ShreniiNepal/shrenii_lmp,fronteerio/canvas-lms,SwinburneOnline/canvas-lms,eCNAP/CANVAS,landonwilkins/canvas-lms,djbender/canvas-lms,kyroskoh/canvas-lms,venturehive/canvas-lms,efrj/canvas-lms,arrivu/hoodemo,shidao-fm/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,HotChalk/canvas-lms,greyhwndz/canvas-lms,juoni/canvas-lms,sfu/canvas-lms,greyhwndz/canvas-lms,whalejasmine/canvas-lms,Jyaasa/canvas-lms,Rvor/canvas-lms,jay3126/canvas-lms,roxolan/canvas-lms,loganrun/pincan,kyroskoh/canvas-lms,venturehive/canvas-lms,samuels410/greatlakes-lms,loganrun/pincan,SwinburneOnline/canvas-lms,whalejasmine/canvas-lms,antoniuslin/canvas-lms,Jyaasa/canvas-lms,narigone/canvas,AndranikMarkosyan/lms,landonwilkins/canvas-lms,redconfetti/canvas-lms,arrivu/arrivu-lms,landonwilkins/canvas-lms,arrivu/arrivu-lms,jay3126/canvas-lms,roxolan/canvas-lms,AndranikMarkosyan/lms,usmschuck/canvas,samuels410/greatlakes-lms,sdeleon28/canvas-lms,tgroshon/canvas-lms,usmschuck/canvas,grahamb/canvas-lms,Rvor/canvas-lms,Unow/canvas-lms,dgynn/canvas-lms,wrdsb/canvas-lms,eCNAP/CANVAS,instructure/canvas-lms,venturehive/canvas-lms,wimemx/Canvas,antoniuslin/canvas-lms,wrdsb/canvas-lms,tgroshon/canvas-lms,usmschuck/canvas,juoni/canvas-lms,va7map/canvas-lms,wye0220/shindig-canvas,skmezanul/canvas-lms,shidao-fm/canvas-lms,wrdsb/canvas-lms,SwinburneOnline/canvas-lms,instructure/canvas-lms,snehakachroo1/LSI_replica,snehakachroo1/LSI_replica,skmezanul/canvas-lms,dgynn/canvas-lms,wye0220/shindig-canvas,instructure/canvas-lms,leftplusrightllc/canvas-lms,narigone/canvas,utkarshx/canvas-lms,sfu/canvas-lms,skmezanul/canvas-lms,loganrun/pincan,sfu/canvas-lms,matematikk-mooc/canvas-lms,greyhwndz/canvas-lms,utkarshx/canvas-lms,ShreniiNepal/shrenii_lmp,djbender/canvas-lms,djbender/canvas-lms,skmezanul/canvas-lms,va7map/canvas-lms,narigone/canvas,gbleydon/canvas-lms,landonwilkins/canvas-lms,grahamb/canvas-lms,utkarshx/canvas-lms,redconfetti/canvas-lms,arrivu/hoodemo,fronteerio/canvas-lms,whalejasmine/canvas-lms,redconfetti/canvas-lms,wrdsb/canvas-lms,kyroskoh/canvas-lms,snehakachroo1/LSI_replica,Rvor/canvas-lms,ShreniiNepal/shrenii_lmp,sfu/canvas-lms,Jyaasa/canvas-lms,fronteerio/canvas-lms,samuels410/greatlakes-lms,arrivu/arrivu-lms,shidao-fm/canvas-lms,efrj/canvas-lms,greyhwndz/canvas-lms,roxolan/canvas-lms,wye0220/shindig-canvas,snehakachroo1/LSI_replica,efrj/canvas-lms,antoniuslin/canvas-lms,kyroskoh/canvas-lms,Unow/canvas-lms,wimemx/Canvas,HotChalk/canvas-lms,leftplusrightllc/canvas-lms,leftplusrightllc/canvas-lms,fronteerio/canvas-lms,grahamb/canvas-lms,va7map/canvas-lms,matematikk-mooc/canvas-lms,Unow/canvas-lms,dgynn/canvas-lms,grahamb/canvas-lms,antoniuslin/canvas-lms,narigone/canvas,sdeleon28/canvas-lms,jay3126/canvas-lms,arrivu/qibla-ecampus,matematikk-mooc/canvas-lms,sdeleon28/canvas-lms,instructure/canvas-lms,instructure/canvas-lms,gbleydon/canvas-lms,utkarshx/canvas-lms,leftplusrightllc/canvas-lms,wimemx/Canvas,sfu/canvas-lms,HotChalk/canvas-lms,efrj/canvas-lms,tgroshon/canvas-lms,venturehive/canvas-lms,juoni/canvas-lms,tgroshon/canvas-lms,sdeleon28/canvas-lms,usmschuck/canvas,grahamb/canvas-lms,eCNAP/CANVAS,whalejasmine/canvas-lms,juoni/canvas-lms,Rvor/canvas-lms,samuels410/greatlakes-lms,redconfetti/canvas-lms,jay3126/canvas-lms,AndranikMarkosyan/lms,shidao-fm/canvas-lms,va7map/canvas-lms,arrivu/qibla-ecampus,arrivu/hoodemo