slightly faster double byte check

since regex is so slow