Eberechi Eze came off the bench to score the eventual winner as Arsenal overcame a spirited Mansfield side to enter the quarterfinals.