'Given a list of `rows` containing unicode strings, return a
new list of rows with those strings encoded as utf-8 for CSV
compatibility.'

def _get_utf8_encoded_rows(self, rows):

    for row in rows:
        (yield [unicode(item).encode('utf-8') for item in row])
