diff --git a/tools/make-frozen.py b/tools/make-frozen.py
index 28829ec74d42b18182a778865d71e3d298d4de08..aaa688598e30698654e5481d8e607778ce612ad7 100755
--- a/tools/make-frozen.py
+++ b/tools/make-frozen.py
@@ -40,7 +40,7 @@ print("#include <stdint.h>")
 print("const char mp_frozen_str_names[] = {")
 for f, st in modules:
     m = module_name(f)
-    print('"%s\\0"' % m)
+    print('"%s\\0"' % m.replace("/", "."))
 print('"\\0"};')
 
 print("const uint32_t mp_frozen_str_sizes[] = {")