Change downloading attachments encoding to urlencode (#1251335)