mmm, logging should work fine with `unicode`, why do you need to encode it to `str` ?