fix csv download so Chrome does not crash on large uris