Use g_ascii_* functions rather than locale-dependent ones.