Faster strip() function in decoder

From commit msg:
The strip function in the decoder is a bit of a hotspot. With a small cpu and a big pipe, everything counts.

Some timings on dev system:
From ~.08sec for 30k element list to ~.0008sec
From ~2sec for 150k element list to ~.004sec