Handle case where unicode strings need to be written.