urlparse for py3
related_to shouldn't be a bytestring