utility routines for converting characters to upper- or lower-case