implemented Uri cleaning to satisfy the failing tests
adding resolution for ../ in Uri