Add an upgrade step to normalize email case.

Ref #875.