string.encode returns a byte string. We want unicode strings on Python
3. In addition, logger arguments need to be passed to the logger call
itself.
Change-Id: I2f621cf4360f7ae4b7049b06510874a0e3867ba3
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>