Fix encoding of messages of length 65536 and add unit tests.
Fix encoding of messages of length 65536 and add unit tests.

Geod24/vibe.d,etcimon/vibe.d,gedaiu/vibe.d,chalucha/vibe.d,DBankov/vibe.d,rejectedsoftware/vibe.d,etcimon/vibe.d