Encountering a stray dog can be a daunting experience, as you never know how it will react