Fixed memorial files not writing on Windows.

Hotfix for memorial files not writing on Windows.