fix assumption of non-unicode subject in logging code