sanitize text files before embedding them