I have had that problem for years on some of my IC motorcycles. The worse dog attractor was my 1962 Vespa. Dogs (before leash-laws) would chase me all over the neighborhood. It could get pretty scary at times.
Now I just get barked at and the dog tries to pull its owner into the street as I ride by on my Triumph or BMW. However, my Zero doesn't seem to offend them much and I can pass by quietly, with neither of us being disturbed.