support chinese window's title and non-unicode wchars