Generic variable length mod 11,10 / mod 97,10 implementation with I18N support