gh-103578: Fix pdb reading code with non-utf8 encoding (#103581)

`pdb` should use `io.open_code` to open code to avoid encoding issue.
3 files changed