Swindon Town progressed into the FA Youth Cup third round with a 2-1 victory away against nine-man Gillingham.