Fix URI validation