encode in utf8 with BOM
decode from uf8 with BOM (utf-8-sig) so that it prints correctly