Forex traders said the dollar gained on safe-haven demand, though lower crude oil prices offered some support to the domestic currency.