The dollar clung to modest gains, having turned around overnight in a sign the recent sell-off may have ended for now.