Fix AttributeError: 'Provider' object has no attribute 'encode'

2.32.0 introduces this error - several updates to encode
self._provider.secret_key, but one too many that attempt to encode
self._provider itself.
Add test for pickle fix
Merge branch 'mreid-moz-fix_provider_encode' into develop.

Fix an auth class pickling bug. Fixes #2479.