Fix bug: one char final items were ignored

The function was off-by-one, and it led to an ugly bug. A final capture of
a single character was dropped.