Strip whitespace when changing e-mail addresses (PR #780)

Fixes #778.

GitHub

You’ve signed the CLA, jroes. Thank you! This pull request is ready for review.

This looks good, thank you!