Stellar encounters with the solar system