fix error with MAC calculation with non alphabetic symbols