Presence of dust with a UV bump in massive, star-forming galaxies at 1 < z < 2.5