Thanks for your reply and your offer to help. The mystery has now been solved, and it has nothing to do with the Hot Potatoes file itself.
You can read all the details in my post http://moodle.org/mod/forum/discuss.php?d=19269
By the way I have just started testing your new HotPotatoes module and I like it a lot. Well-done!