Fixed reading strings to buffers.