Fix some unicode weirdness in Python 3.