change from encode('utf-8') to smart_utf8(*)

avoid problem found during tests with pbs.py