Convert URL to path