changed the text document read lines to the native implimentation with utf-8