When checking path prefixes we really should use the right APIs, just in case people add multiple slashes to their paths...