Fixed downloading arbitrary non-torrent files.

Added file name checks to make sure it matches what is expected.