Let's think of it another way.
We have four characters : Sheriff, The Maiden, Robin, and Little John.

Now suppose the Sheriff is a woman and Marion is a man and it is Marion's two friends in the dungeon.

The Sheriff says SHE will let them all go if Male Marion has sex with her.

How does that affect your morality perceptions of the tale?
wow