human
Double-decoding unicode in python
assistant
Here is some code to encode `u'X\xc3\xbcY\xc3\x9f'` as unicode and decode with utf-8

'X\xc3\xbcY\xc3\x9f'.encode('raw_unicode_escape').decode('utf-8')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.