Convert all strings to UTF-8

def fixUTF8(cls, data):  # Ensure proper encoding for UA's servers...
        """ Convert all strings to UTF-8 """
        for key in data:
            if isinstance(data[key], str):
                data[key] = data[key].encode('utf-8')
        return data