add 'canonicalizeEmail' utility method
actually export the canonicalizeEmail function