Purifying organophosphorus compounds contaminated with chlorine