South Africa's Kevin Anderson is through to the quarter-finals of the Erste Bank Open in Vienna after a straight sets win over Marcos Baghdatis.