adding the import doesn't resolve the econding errors that made the `.encode('utf-8')` calls necessary.