Switched from Shellwords.escape call to quoting when saving file to fix saving on windows