NXP-12198: fix label encoding