STYLE: specify encodings when opening files
- [x] closes #52997  (Replace #52997 with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.


let's stick to one PR, please don't open a new one which does the same thing

same comments from https://github.com/pandas-dev/pandas/pull/52997, please address them This is my first PR so I was making mistake next time i was more carefull for making PR this is close, a few tests left. would be great if you could finish it up, else I can add a commit on Tuesday and push this over the finish line can i fixes that cases or you  push this over the final line??? feel free to fix can you refer that test cases so i'll fix it? check the failing tests in the CI logs you'll need to fix the tests (in addition to merging upstream/main) to get this passing i have check the circle ci to find the error and i tired on a local to fix it. i try to fix read Binary mode error but if i remove the encoding then pre-commit command does not work it give me error massage called as "unspecified encoding" i thought it finish it up.