[chanlogs] Don't encode to utf-8 on Python 3

encoding a string to utf-8 on Python 3 won't work and will cause this module to
fail.