bugfixes for wide chars in text names