I wonder if we should use `#byteslice` here, instead of `#slice` (if available). I mean, why do we care about correct byte handling when returning the remaining length, but not for the actual slicing?