>>953みて思ったんですけど

str_replace("\r","\n",$text);
str_replace("\r\n","\n",$text);

って常にやっとけばいいのかな?