Charges dismissed against alleged rapist over prosecutorial misconduct