Caroline Wozniacki slog ut Leyla Fernandez med 6-3,2-6,7-5 och är klar för den tredje omgången i Wimbledon.