Fixed encoding issue after exporting to csv