Added charset logging