Now supports both windows and linux newlines