Fix system locale string + allow 3 letter language codes.