write unicode object fix