The person punished in that case should be the pimp. I realize that's sometimes hard to accomplish, but I can't see any amount of harm as justification for punishing people who weren't aware of their actions.