diff --git a/src/solver/simulation/TimeSeriesNumbersWriter.cpp b/src/solver/simulation/TimeSeriesNumbersWriter.cpp
index 09122c32e0..d35dd5fdc5 100644
--- a/src/solver/simulation/TimeSeriesNumbersWriter.cpp
+++ b/src/solver/simulation/TimeSeriesNumbersWriter.cpp
@@ -48,7 +48,7 @@ static void genericStoreTimeseriesNumbers(Solver::IResultWriter& writer,
 
     std::string buffer;
     timeseriesNumbers.saveToBuffer(buffer);
-    writer.addEntryFromBuffer(path.string(), buffer);
+    writer.addEntryFromBuffer(path, buffer);
 }
 
 void BindingConstraintsTimeSeriesNumbersWriter::write(