Fixed encapsulated packet decoding, adding support for login packets.