Problem with csv output encoding fixed: utf-8 changed to utf-8-sig