Fix crash when attempting to save chunks on windows.