Fix Python UnicodeDecodeError for sys.stdin Input - Resolve npm Build Failure with Exit Code 1-How to Handle UTF-16 Encoding in Python

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