Make make_chunk_iter work on bytes and unicode