Add checks against HTTP/GnuTLS garbage in downloaded files