Fix for autodetection of languages without spaces such as Japanese.