Fixes bad urls. Fixes bad json dump