Workaround KeyError for unicode TALES expressions