Yes. Your problem is linefeeds. The caption in your sample uses 0x0d characters for the linefeed. This is the Macintosh standard. Your PC would of course prefer 0x0d followed by 0x0a. And in the Unix world, it is 0x0a alone.
You will have to convert the linefeeds for the specific platform you are using.
(5)
]
