Fix email text formatting bugs