Update line termination & add utf8 support