[3.11] gh-103578: Fix pdb reading code with non-utf8 encoding (GH-103581) (#103867)

`pdb` should use `io.open_code` to open code to avoid encoding issue.
(cherry picked from commit 31acfd78a0810f84898d36a8289e407d3754b823)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
3 files changed