decode to utf before writing