handle invalid json character