Fix encoding
Use transaction safe migration
Basic code for emaildomains and emailentities (without mappings)