Police have charged a man accused of exposing his genitals to a child on a bus through Swindon.