Update mod_log_chat so it works with Ejabberd 13.12

Updated mod_log_chat so it works with the new binary format of Ejabberd 13.x.