Reeb graphs of curves are stable under function perturbations