Clean up resources
URIComponent should be decoded in parseURI