Fix overzealous URI grepping bug