Unicode string writing/reading