Fixed log encoding issue