Improve email regex and add test for email downcasing