Thanks for everyones help. I have decided to buy a UL listed male cord cap and 25 ft of 12/3 SOW and just take off the existing cord and install a longer one.

I see no reason why this would be a code violation.

Thanks