Workaround IronPython's BadDictionaryType error
Fix test failures due to Unicode on IronPython