Update app/models/repository.rb

Issue #2699 - Download button not functioning. Replaces slashes with underscore in downloads filename