Add support for readAsText.