* trim username before submitting it for login

* Fixes #716
* Jenkins: http://jenkins.buttonweavers.com:8080/job/buttonmen-cgolubi1/274/