Handle unicode emails

https://github.com/dimagi/dimagi-utils/commit/8b500cd9e6ba860fb23c0098f794f60e27d36b8b#commitcomment-8885048