Change "to_str" to "to_bytes": needed when opening a file in bytes mode
Change "to_str" to "to_bytes": needed when opening a file in bytes mode

References: https://github.com/saltstack/salt/pull/45357

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt