Fixes for #467

Decode string in Content-disposition header parameter such as "filename" properly.

yeah, there is a bunch of ugly in here if you ask me ... leave it, I'll do a cleanup PR later ...