Refine receipts encoding