BUGFIX: Do proper minimum length encoding.

When packing the header, the length was encoded incorrectly. This was caught by AutobahnTestSuite case 1.1.4. We must use the proper "minimum length encoding".