Update app/models/repository.rb

Issue #2699 - Download button not functioning. Replaces slashes with underscore in downloads filename
Merge pull request #2726 from McJoppy/download-archive-bug

Update app/models/repository.rb