Laser-assisted single-molecule refolding