Fix #572: Unable save to file (Windows)
Apply same fix for saving settings