Fixing URI port treatment.