Quick encode with CodeTable