Avoid excessive reallocations for skipped bytes.

Reallocations are especially slow on Windows.