Correcting unicode function now that txn_id is not mandatory