'Encode result as UTF-8.'

def convert_to_utf8(self, res, formatted=0):

    nres = []
    for r in res:
        nr = []
        for c in r:
            if (type(c) is text_type):
                c = c.encode(u'utf-8')
                nr.append(self.convert_to_simple_type(c, formatted))
        nres.append(nr)
    return nres
