growByteBufferIfNeeded

Grows bb to a capacity to allow len characters be encoded.