add encoding magic line