Implemented ByteBuffer#cheap_peek

And hopefully optimized writing to the socket a bit. The #to_str operation was quite costly.