fix some uses of str() in unicode context. (RhBug#1044502)

Note: if the object implements both __unicode__() and __str__()
properly (dnf.exception.Error does), we don't have to use any
conversions and can append/interpolate the object as is.