Replace all linebreaks with /\r to eliminate cross-platform linebreak issues