fix unicode logging error