Re-write URI parse procedure