def to_unicode(s):
    """
    Receive string s and try to return a utf-8 string.
    """
    try:
        return str(s.decode('cp1252'))
    except (UnicodeDecodeError, TypeError):
        try:
            return str(s.decode('ascii'))
        except (UnicodeDecodeError, TypeError):
            return str(s)
