Recognition of characters printed with magnetic ink