Hostname should also be passed through safe_str

Sometimes self.hostname can contain bad characters (when PC name is not written in english) like 'MY-\xcf\xca' and that causes unicodedecodeerror when trying to format a banner.