NXP-12666 adapt latin1 check for windows behavior (better matching)