You can write without string convertion, how about using `packer::pack_raw`?
```c++
const size_t used = used_bytes();
packer.pack_raw(used);
packer.pack_raw_body(
    reinterpret_cast<const char*>(bits_), used);
```