Fixed log encoding.