Restrictions of Fourier transforms to curves