Prevent handshake spam from invalid names.

Prevents users using the name "\n\n\n\n\n\n" and other invalid names.