Improve isWordChar() for Arabic language

For #2789.
See http://unicode-table.com/en/sections/arabic/