Deformations of symmetric products of curves