strip whitespace when changing e-mail addresses

Fixes #778.