Add a fix for unicode errors in dictionary.py