basement:fixed up encode
1) test is ok