Sorana Cirstea battled to a 6-2 5-7 6-1 victory over Sara Errani to book her place in the quarter-finals of the Dubai Tennis Championships.