diff --git a/lib/pansophy/synchronizer.rb b/lib/pansophy/synchronizer.rb
index <HASH>..<HASH> 100644
--- a/lib/pansophy/synchronizer.rb
+++ b/lib/pansophy/synchronizer.rb
@@ -18,7 +18,9 @@ module Pansophy
         next if directory?(file)
         file_path = @local_directory.join(destination_for(file))
         file_path.dirname.mkpath
-        file_path.write(file.body)
+        File.open(file_path, 'w') do |f|
+          f.write file.body
+        end
       end
     end
Retrocompatibility for Ruby <I> and <I>