fix URI validation