The dollar ended its worst year since 2003