When a sex worker escaped a terrifying encounter, police had a suspect – but forensics gave them the conviction. Philippa Kemp recounts the breakthrough that caught a serial killer.