Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)" (#25108)

This reverts commit ff3c9739bd69aa8b58007e63c9e40e6708b4761e.
3 files changed