changing newlines to PHP EOLs