Fix Python UnicodeDecodeError for sys.stdin Input - Resolving Python Latin-1 Encoding Errors-Windows 11 Bluetooth Not Finding Devices: Practical Fixes

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.