Caroline Wozniacki beat Angelique Kerber 6-4 6-2 to reach her first WTA 1000 quarter-final in half a decade.