Fix Python UnicodeDecodeError in Socket Data - Git Detached HEAD Explained with Recovery Steps-Resolving Unmerged Paths After Git Rebase Conflict

Likely symptom
Likely cause
Safe rollback
Verification route
- Repeat the original action, not only a simplified test case.
- Restart the app or reload the service after configuration changes.