Updated encode.h and encode.c. not to free input.

buffer in function verify_utf8_encoding()