better handling of bad URLs in DownloadTransform and utGallery, for #207