Convert to unicode before encoding.
Add a couple of examples.