Recent gains against the dollar mark a turnaround from earlier this year, when it fell to its weakest level in two decades.