replace spaces in download link without encoding entire URL

Reworked old PR to fix errors if app download link URL has spaces in it.

Original closed PR #4303