fixed "Weird Key" errors (displayed by the minecraft server)
This also caused the connection to close