Catch bad URI errors