Fix Python UnicodeDecodeError with os.listdir - How to Fix Docker Pull Unauthorized Access Denied-Git Merge Conflict Abort Not Working: Fixes That Actually Help

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