Jules (the original poster) also reported the problem in this thread:
https://www.mobileread.com/forums/showthread.php?t=26452
It is clear the he was working from a poor-quality source file. Also, he wasn't using an emulator to see the results of the edit. It's a GIGO situation.