def utf_decode(data):
    """ Decode UTF-8 string """
    if isinstance(data, str):
        return data

    try:
        decoded = str(data.decode('utf-8'))
        return decoded
    except ValueError:
        return data