A default buffer size of `4096` will be used here. I guess that's sufficient? Maybe it would be nice to make it configurable to avoid always resizing the output buffer for scenarios where we know a priori that we'll exceed 4K. May or may not affect performance?