fix a bug where backslashes were getting replaced with forward slashes, which breaks escape sequences in config files