def safe_unicode(self, buf):
        """
        Safely return an unicode encoded string
        """
        tmp = ""
        buf = "".join(b for b in buf)
        for character in buf:
            tmp += character
        return tmp