Fix check_mail helpers extracted from a class
Fix encoding declaration
Fix encoding declaration