Implement own isAscii since it is not present on some systems.