Foreign stocks have beat the S&P 500 in 2017. One reason has been a slide in the dollar. It's back up, but for how long?