def percentage(value):
    """Returns the number as percentage with two-digit precision"""
    try:
        value = float(value)
    except (ValueError, TypeError, UnicodeEncodeError):
        return ''
    return '{0:.2%}'.format(value)