Correctly parsing linebreaks in messages