encode z-scores