Handle UriFormatException