Is he serious?
Why didn't Allah simply forbid rape of female captives?
They are hoist by their own petard.
Either Islam is eternal and immutable in its perfect morality, or it was a localised, contextual religious code that is limited and stunted by the time in which it was prescribed.
In which case, it is backwards and worthless for the modern world.
The only way to get out of that ditch is to by-pass the literalism of it all. In which case Islam can be mataphorical-ised. However, it then loses its immutable and universal truth claims, and gets cut down to the same size as, well, every other religion or superstition that has been liberalised and de-literalised. In other words, Islam castrates itself, if Muslims go down that route.
Hence the neurosis, anxiety and hair-pulling in modern day Islam.
Its Catch 22, it really is.