Prevent read_files array having newlines