Fixed JSON locale output crash