I politely inform these sorts of dog owners that if their uncontrolled dog gets close enough to me to kick, I will do so.
So, using the concept of looking on the bright side, one could look on being assaulted by a pug as an opportunity to practice place kicking!
When I last lived in a situation where I could responsibly own a dog when that young dog would try to bite me, (using my arm or hand as a chew toy) I would push said appendage down the animals throat. He/she would learn fast that it is not smart to chew on me. My shoes ended up being tastier. LOL