fix utf-8 char in line will cause error
improve match algorithm

new algorithm use score distance to judge the match word,
the exactly match word have the highest score. so the distance is 0.

in new algorithm
the front match char will have a bit higher base score,
continue match chars will have a increase factor that make them get more score.
the word boundary char have the total score equal to all chars' base score in word.