The U.S. dollar extended gains on Tuesday as the deepening conflict in the Middle East prompted a flight to safety.