Free discontinuity problems with unbounded data