If the transaction purpose contains line breaks, they are converted to invalid characters, not to spaces as it should be.
Ingo has submitted PR 573 to fix this.
Merged with 5870887f1291041cca3a1e0805b988cf9992dcfc.