document.py: Converts links from lxml to str for Python 2.

url.py: Asserts str in URLInfo.parse().