Fixed string reading and writing.