fix unicode bug in readString&writeString