Try to work around python's idiocy in the face of unicode