Those men weren't trannies; they were simply cross-dressers.
Cross dresser is synonymous with transvestite.
But that's not the point. The reason any of it is/was acceptable is because the 'dirty' was couched in humor.
Like the idea that a dirty joke is well told when you can tell it in front of your grandmother. That's the art of it in telling a joke anyway... and something lost today.