Fix Python UnicodeDecodeError with os.listdir - How to Fix Git Unrelated Histories Error When Merging Branches-Persist Docker Networks Across Reboots

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.