better locale recognition