Closes #35: Remove traling hash from url path

The bug is caused by '#' be at the end of the path as in /foo/bar/title/#/
Modified cleansing algorithm to get rid from the path-trailing hashes