Fix ttyrecs on big endian.