demo is now a unicode object. Unicode objects behave almost exactly like strings, however if you try to print it out or write it to a file, you'll probably get and error. To output unicode object (either to screen or to disk), you first need to encode them: