core: fix concatenating certain combined file streams.