Split string encode