Decode uri before matching