correctly escape line breaks