issue #2103 Add more lua test case(Replace encoding error)