Correctly decode uri components.