Add tests and fix other cases where autoLinkEmail would fail.

Refs #2403