Judge overturns rape conviction as woman "didn't behave like a victim"