diff --git a/corsika/detail/output/OutputManager.inl b/corsika/detail/output/OutputManager.inl
index 3badfd1db18638dc911eb2e41078f12329868f44..485e3908e72938dffb7a02a0eb6d35f32ed12158 100644
--- a/corsika/detail/output/OutputManager.inl
+++ b/corsika/detail/output/OutputManager.inl
@@ -15,6 +15,8 @@
 #include <ctime>
 #include <sstream>
 
+#include <boost/filesystem.hpp>
+
 #include <fmt/core.h>
 #include <fmt/chrono.h>
 
@@ -30,7 +32,7 @@ namespace corsika {
     out << node;
 
     // open the output file - this is <output name>.yaml
-    std::ofstream file(path.string());
+    boost::filesystem::ofstream file(path);
 
     // dump the YAML to the file
     file << out.c_str() << std::endl;