Problem with uppercased email addresses fixed. Closes #327