Fix bug: add wide character support.