Rewrote ByteVector::replace() mush simpler