[SECURITY-735] Correct the point where the distinguished name needs to be quoted, i.e. just before being used in a getAttributes() call.