fix apply encoder method
Created by: maypink
Earlier in _apply_encoder method new labels were recursively added to the encoder.classes_ if they had not been encountered before.
Now at the very beginning we go through the current column and add all the labels that have not been seen before