spell checker : added support for different encodings