I came here from node.js and it doesn't work for me. Here is the way of fixing it in node.js
const encodedFileName = encodeURIComponent(fileName) reply.header('Content-Disposition', `attachment; filename*=UTF-8''${encodedFileName}`)