the kindle should have name-replacement built in.

I keep having to pirate books, hacking them to remote certain triggering names, and reuploading them.

maybe I should just write a script to automate this

I wouldn't have to pirate it but amazon wants to DRM all their books, even when I'm just here to rename one guy
It is pretty hilarious that I can't edit the book I own because the DRM thinks I'm trying to steal it, and the fix for this is simply to steal it and edit the stolen copy instead
Don't buy DRMed content, kids: just steal it instead, you'll have more ability to fold, spindle, and mutilate it, and you'll have it forever.
epubs are zips, btw. unzip them and you can easily edit their contents
@foone If you're a worshipper at the Church of Emacs, it'll just treat the epub as a directory and you can edit the XHTML files within and it'll deal with the unzipping and rezipping automagically.