Fix the bug that the encoder does not support chunked base64 data as the input

Test code added in ./test dir..