Encode for utf-8 set