Wrap decoding of the label encoding in a try