Proper fix for encoded characters in the URI. We need to only decode the last segment for getChild() since that expects a decoded name. The remainder of thwe URI remains encoded as we need to do comparisons against the request.uri with that, and request.uri is not encoded.
Proper fix for encoded characters in the URI. We need to only decode the last segment for getChild() since that expects a
decoded name. The remainder of thwe URI remains encoded as we need to do comparisons against the request.uri with that, and
request.uri is not encoded.

What we really need here is a proper URI class that can maintain its encoded/decoded state, so comparisons etc are done
transparently, and so we can avoid double-encode/decode issues too.

git-svn-id: 0c33e958600270102f91bf5868e396345dde476c@1434 e27351fd-9f3e-4f54-a53b-843176b1656c

red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver