Encoding parameter for  AutoModel.from_pretrained() module.
### Feature request

transformers.AutoModel.from_pretrained() module allows to load pretrained models from local directories as well. The local pickle files path is an argument of the above function. These files can have different encoding types.

A parameter called 'encoding' can be added in the parameter list similar to

pandas.read_csv('path/to/csv/file',encoding='utf-8')

which takes encoding type as parameter. But this proposed encoding feature must be enabled only while loading local files and should not take parameters while loading models from other sources (like HF-Hub etc).

### Motivation

I face Unicode-Decode error while loading pickled model files from local directory. To overcome this issue, the above feature would help to avoid the unicode-decode error.

### Your contribution

Unfortunately, I can't contribute now.
Thanks for the report.
Please provide us with a reproducing example showing how a model saved with `save_pretrained` can't be reloaded with `from_pretrained`.<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.