I was too when young. Was bit several times. But at some point I thought 'This is ridiculous. How can I (about 130 pounds) flee in terror from a 5 pound Pekingese?' I had met nice dogs but also mean ones. So I decided to learn about dogs and the psychology. One article I read at the time said they can sense your emotion, and will react aggressively to fear. One way around that was to think 'I'm mad. I'm really mad at this dog' and psych yourself up so you emote and probably smell like anger.
Armed with this new technique the next time I passed a certain house, the Pekingese came out from the backyard barking hysterically as usual. But this time I stood my ground and calling up anger gave out a primal scream-like yell. The poor little dog stopped in it tracks and ran behind the house as fast as it could.
Since then I have become the opposite. A dog lover. I have 4. But have learned a lot more and better methods of dealing with dogs. That anger thing is fine for scaring off an annoying tiny pup but can get you in serious trouble with anything bigger. You don't want to emote fear, that is true, but what's best is to emote calmness and simply that you are not a threat. I go a step further and try and emote love. I am not sure the love thing works, but I do get along very well with most all dogs, even so called difficult ones. But you also have to respect them and not pet or snuggle until you have gotten clear approval from the owners and the dogs themselves. They can have personnal space issues too. Some will jump on you and want love and affection. Others will remain aloof and take time to get to know you.
Sorry for length. Mainly wanted to share it is not a situation you are trapped in. It can be overcome.