bbStrBufEnsure: fix realloc copy when string contains zero bytes