fixed sale.links to_hash encoding