Shortcut funnction for encoding given text with utf-8

def utf(text):
    """Shortcut funnction for encoding given text with utf-8"""
    try:
        output = unicode(text, encoding='utf-8')
    except UnicodeDecodeError:
        output = text
    except TypeError:
        output = text
    return output