WebPathResolver - sanitize URL to directory name