file reading: escape special characters