Render an error message if a URI::InvalidURIError exception occurs