Use sys.encoding for os.system calls on Windows