'Insert constant *string* (a str object) into module *mod*.'

def insert_const_string(self, mod, string):

    stringtype = GENERIC_POINTER
    name = ('.const.%s' % string)
    text = cgutils.make_bytearray((string.encode('utf-8') + '\x00'))
    gv = self.insert_unique_const(mod, name, text)
    return Constant.bitcast(gv, stringtype)
