It duplicates `Html::encode`. Is it to take less memory in case we're handling fatal?