UN representative slams Egyptian president's remarks