First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems