diff --git a/src/lib/KHerGe/File/File.php b/src/lib/KHerGe/File/File.php
index <HASH>..<HASH> 100644
--- a/src/lib/KHerGe/File/File.php
+++ b/src/lib/KHerGe/File/File.php
@@ -243,7 +243,13 @@ class File extends SplFileObject
         $enclosure = '"',
         $escape = '\\'
     ) {
-        if (false === ($length = parent::fputcsv($fields, $delimiter, $enclosure, $escape))) {
+        if ('\\' === $escape) {
+            $length = parent::fputcsv($fields, $delimiter, $enclosure);
+        } else {
+            $length = parent::fputcsv($fields, $delimiter, $enclosure, $escape);
+        }
+
+        if (false === $length) {
             throw FileException::writeFailed($this);
         }
Fixing incompatibility with fputcsv() in <<I>.