Fix unicode string writes