VIN conversion script from #556