def decode_tuple(tuple):
    """
    Decodes binary strings in a result row

    @param tuple: Database row
    @type tuple: tuple
    @rtype: tuple
    """
    result = ()
    for var in tuple:
        if isinstance(var, bytes):
            var = var.decode('utf8')
        result += (var,)
    return result