'Convert URL-escaped href attributes to unicode.'

def decode_href(self, href):

    decoded = unquote(binary_type(href))
    assert isinstance(decoded, binary_type)
    decoded = decoded.decode(u'utf8')
    return decoded
