Truncate email addresses if necessary.

Fixes T258.