add character encode.