Normalize line endings
Fix a NPE when trying to join a non-existing player

Fixes #860