prevent html errors from leaking into json die