While it's probably safe, don't use a "pure" bytestring as a buffer.

reallocate a new buffer and copy the old thing inside.