Oh god. Reliable deterministic matching with fucked up data is hard. :(