Added code to decode the url encoded parts of the URI $parts array.