Juan Monaco ended his three-game losing run against Albert Ramos to book his place in the quarter-finals of the ATP Brazil Open in Sao Paolo.