write in output in UTF8 with BOM mark