diff --git a/osu.Game/Database/LegacyBeatmapExporter.cs b/osu.Game/Database/LegacyBeatmapExporter.cs
index e89d3da8c7..4ee8c0636e 100644
--- a/osu.Game/Database/LegacyBeatmapExporter.cs
+++ b/osu.Game/Database/LegacyBeatmapExporter.cs
@@ -13,6 +13,6 @@ namespace osu.Game.Database
         {
         }
 
-        protected override string FileExtension => ".osz";
+        protected override string FileExtension => @".osz";
     }
 }
diff --git a/osu.Game/Database/LegacyScoreExporter.cs b/osu.Game/Database/LegacyScoreExporter.cs
index f0514d5350..690070af85 100644
--- a/osu.Game/Database/LegacyScoreExporter.cs
+++ b/osu.Game/Database/LegacyScoreExporter.cs
@@ -26,7 +26,7 @@ namespace osu.Game.Database
             return filename;
         }
 
-        protected override string FileExtension => ".osr";
+        protected override string FileExtension => @".osr";
 
         public override void ExportToStream(ScoreInfo model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
         {
diff --git a/osu.Game/Database/LegacySkinExporter.cs b/osu.Game/Database/LegacySkinExporter.cs
index 4775a54c13..14a3907916 100644
--- a/osu.Game/Database/LegacySkinExporter.cs
+++ b/osu.Game/Database/LegacySkinExporter.cs
@@ -13,6 +13,6 @@ namespace osu.Game.Database
         {
         }
 
-        protected override string FileExtension => ".osk";
+        protected override string FileExtension => @".osk";
     }
 }