Revert "NXP-12666 adapt latin1 check for windows behavior"

This reverts commit 6e1e0012eb5ce4e9960438d77b9114d5b6697ff4.