add TextHelper::preventWidows()
use APP_CHARSET
Merge pull request #1210 from patrickheck/prevent-widows

add TextHelper::preventWidows()