Something like this happened to me. I wrote a letter to the local paper describing the incident, and quoting the state law that lays out cyclists' right to us the road and the city ordinance that forbids bicycles on the sidewalks.
I then said that loudmouthed ignorant harridans should keep their pie-holes shut.