fix issue 2029: response.stream bug with spaces in filename

fix suggested by @leonelcamara