I don't wear AirPods/headphones of any sort in public but I don't like talking to strangers while out and about and get very uncomfortable since it's almost always someone trying to get something from me.
But every time someone does randomly talk to me, I smile and laugh and I'm very cordial. Because people who approach strangers generally get quite angry when they're outright shot down. That doesn't at all mean I'm happy to talk. A smile is often just a defensive response.
Just trying to spread a little cheer and human connection, getting angry is the last thing I'd do.