Handle zero bytes correctly.