Fix #5: Add validation of URI