Rewrite email format for validation