Added forgotten write and readFields for stringRep