adds encoding magic comment