util/StaticFifoBuffer: make Shift() public
TextInputStream: manually shift the buffer before reading

Fixes truncated lines in m3u and cue files (regression by commit
67958f7).