initial import of fixed multibyte version