fix for string vs uint8 chr