Make urlparse.urljoin work for ktbs custom schema

See http://bugs.python.org/issue18828