49ers win in Carolina