I remember that line breaks were unified in Photoshop strings with \r. Would it work if changed to \r?
\r