visionmedia/express — pull request #2058 by thetalecrafter (2014-04-20 03:20:30+00:00)
Title: support non-ascii filenames in content-disposition headers

Content-Disposition with non-ascii characters gets garbled on all major browsers. This change fixes obvious problems in all browsers tested.

## Before

### Mac OSX 10.9.2
Safari 7.0.3: utf-8 -å.txt
Chrome 34: utf-8 -a«-å.txt
Firefox 28: utf-8 _a«-å.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Opera 20: utf-8 -a«-å.txt

### Windows XP
Internet Explorer 8: cannot download, can open in browser (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)

### Windows 7
Internet Explorer 9: cannot download, can open in browser (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)

### Windows 8.1
Internet Explorer 11: cannot download, can open in browser (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Chrome 34: utf-8 -a«-å.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Firefox 28: utf-8 _a«-å.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)

## After

### Mac OSX 10.9.2
Safari 7.0.3: utf-8 한中日.txt
Chrome 34: utf-8 한中日.txt
Firefox 28: utf-8 한中日.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Opera 20: utf-8 한中日.txt

### Windows XP
Internet Explorer 8: utf-8 ᄒ ᅡ ᆫ中日.txt

### Windows 7
Internet Explorer 9: utf-8 ᄒ ᅡ ᆫ中日.txt

### Windows 8.1
Internet Explorer 11: utf-8 ᄒ ᅡ ᆫ中日.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Chrome 34: utf-8 한中日.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)
Firefox 28: utf-8 ᄒ ᅡ ᆫ中日.txt (displayed as “utf-8 ᄒ ᅡ ᆫ中日.txt” on page)