fixed handling unicode strings