moji char predicates

This is a rebased version of PR #8110, addressing issue #5939.
cc @stevengj @ivarne
We're using the standard libc names for everything else, though, right? Would be weird to have just one of them different.