I guess that solves the problem of needing four witnesses to testify against the man.
This might also be a defense against an honor killing of the rapist. Her family members might have decapitated the rapist, while she takes the blame. She gets a kind of justice while taking the fall if there is a jail sentence for killing the assailant.