Don't change encoding if file can't modify.