Here are few more details. The web interface access to this attachment works fine. Looking at the full header under Ticket/Display.html?ShowHeaders=1;id=123 shows the subject in one line. And I can download the attachment fine.
But if I call REST/1.0/ticket/123/attachments/1302 then the mysterious two extra lines and the wrapping appear. Thierry