Function library for multibyte string manipulation