Implement convert, mergeCodeTables & quickEncode