Received text handling fix

Handling of file data has been fixed