Make make_line_iter operate on unicode and bytes