def unicode_ftw(val):
 val_list = []
 for char in val:
  val_list.append('\x00')
  val_list.append(pack('B', ord(char)))
 ret = ''
 for char in val_list:
  ret += char
 return ret

def unicode_ftw ( val ) : val_list = [ ] for char in val : val_list . append ( '\x00' ) val_list . append ( pack ( 'B' , ord ( char ) ) ) ret = '' for char in val_list : ret += char return ret
simple unicode slicer .