make entry Id generation more conformant to description

A fragment can have multiple # and http://web.archive.org/web/20110915110202/http://diveintomark.org/archives/2004/05/28/howto-atom-id says to convert them all to '/'. Current code only converts the first #.
Merge pull request #1 from kjk/patch-1

make entry Id generation more conformant to description