NUL bytes in the save file itself or just in its name in game? If in save file, then that probably isn't connected to data.sav, computer stores all writes to file in RAM first, and only then flushes them to disk to increase performance, when you had a power outage it didn't had enough time to write everything to disk and save file was left with only NUL bytes in it