Improve PathInfo#decodedWithIndexHtml to deal with URL with trailing /