Update artifactory module to handle py3 encoding
Update artifactory module to handle py3 encoding

Fixes #56660

Py3 encoding of username and password headers requires extra handling.
Convert username:password header string to bytes then b64 encode bytes.
Handle case where py3 returns data in bytes.

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