fixed content-disposition header usage and added utf-8 support