Fixes #2897: Long query string displayed as part of download file name