Pathogen escape from host immunity by a genome program for antigenic variation