Replacing new lines with platform independent PHP_EOL.