Use encode_email() to avoid DB encoding errors on insert.