Handle locale in different server environments