Fix typo in as-url implementation for Path

Discovered using the eastwood linting tool