My Patterdale dog, is very friendly, but it amazes me how people including kids approach him.
They stick their hands straight to pat his head!
When approaching and dog (if you must) you should offer the back of your hand for them to sniff and go off their reaction, if they do not want to be handled by you they will back away.
He (Charlie) is always on his lead around people and I am controlling everything, I would not automatically trust any dog no matter if the tail is wagging
Mick.