Fixed trailing whitespace.
Protocol 1.8: Fixed possible crash on malformed packet.