
Fix text file encoding and normalize punctuation/whitespace
Source:R/fix_text_file.R
fix_text_file.RdRead a file as raw bytes, drop NUL characters, guess or use a provided source encoding, convert to UTF-8 and normalize common punctuation and newlines.