When opening the dict, we know it's in UTF-8, so do not rely on the environment. Thanks to Ettl Martin for reporting the problem and founding the solution.