logging table encoding fix -- hopefully it actually works, as I haven't seen feedback...