IO::PrefixSuffixBuffer
PrefixSuffixBuffer is an IO that retains the first bytes in the prefix
buffer and the last bytes in the suffix buffer.
When writing more bytes than fit in the buffers, only the start and end bytes
are preserved.
#to_s renders the buffer contents with a message indicating how many
bytes were omitted.