Argh. Python 2's string/unicode dichotomy makes it so easy to build an inconsistent codebase.