You can buy a replacement cord for less than 10 bucks.
http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3D...
Having said that, I wouldn't feel comfortable opening the power adapter and rewiring a new cord... I'm sure it's easy and safe, but still...