Avoid the json_encode() explosion when saving $ex->getTrace()