Style.
 Handle BER length encoding.

Tolerate BER length encoding which may include leading zeroes.

(Imported from upstream commit: 0e7bda79a1f60f85873b12135bb29f67ccccf8c8)