I'm thankful for the script, too! I bought an eBook from Fictionwise on my iPhone once and needed to convert that to ePub. The generated HTML code is so awful it hurts my eyes to look at, but at least IT WORKS!
But now I'm trying to convert the HTML file to ePub with Calibre. Stanza can't open it at all as it believes the ePub file wouldn't exist (wtf?), but more problematically, Adobe Digital Editions displays question marks instead of quotation marks. The quotation marks in the HTML code are standard UTF-8. What do I need to do to change that? Should I replace them with HTML codes instead?