Use intermediary path/query values to work around Python 2.6's urlparse limitations.