Using `os.path.join` on URL components doesn't seem right