add char encode function, it maybe usefull when use http-get to upload data.