byte-based C locale, phase 1: multibyte character handling functions