Ignore slashes when encoding URLs or paths