Fix ASCIICharsetEncoderTest testcase for deal with truncated char sequences correctly