account for unicode normalization in python 3

(see http://bugs.python.org/issue23091)