Convert dict to object before formatting

- According to this discussion, https://discuss.frappe.io/t/print-format-currency-utils/3480/3