diff -ur t/date/date_api_ical.inc date/date_api_ical.inc
--- t/date/date_api_ical.inc	2009-05-10 08:44:14.000000000 -0400
+++ date/date_api_ical.inc	2010-01-05 12:15:08.000000000 -0500
@@ -590,10 +590,10 @@
   // this and see if anything breaks.
   //$text = str_replace('"', '\"', $text);
   //$text = str_replace(":", "\:", $text);
-  $text = str_replace("\\", "\\\\", $text);
+  $text = preg_replace("/\\\b/","\\\\", $text);
   $text = str_replace(",", "\,", $text);
   $text = str_replace(";", "\;", $text);
-  $text = str_replace("\n", "\n ", $text);
+  $text = str_replace("\n", "\r\n ", $text);
   return trim($text);
 }

