fix for multibyte text type detection, #34