avstring: Add locale independent versions of some ctype.h functions