decode the filename before passing it to the browser