Change regex used to check email address validity.

Picked from http://stackoverflow.com/a/1149894/2426994