fixing routes in order to enable downloads for files with a dot in the filename.