add dictionary class

using utf-8 as default encoding when saving or looking up words. if
changed to unicode, has to change TRIE_CHILD_MAX = 65536, which made
building dictionary slower..