Some applications of the set of curves on fibred surfaces to coding theory