U.S. dollar posts best month since November 2016; nonfarm payrolls loom