Fix unicode encoding bug in sanitize.py. It was dropping all non-ascii encodable characters.