Fix log encoding, set log bufsize to 0.