fixed crash with latin-1 dictionaries