Fix double slash encoding for image urls.