Trim email address before submitting to API.

see my new PR, lets leave this here.