Fix bug 1052 ledger-mode mangles transactions with tabs.