fixed the crash on danish strings