Adapt to change of pyasn1 API for BitStringEncoder