avoid adding a duplicate license

When the a vim encoding line is present before the license in the
file, the license is and the encoding line are not removed before
adding the new license.