Fix support for spaces in filenames using decodeURIComponent.