Support for non-ASCII characters in word completion