removed pretty from safe_json_encode, that's a stupid idea