fix unicode encoding so csv download works