fix unicode wide character problems