Fix handling of slashes in URLs
This is a rebase of !511 (closed) on main which fixes manually entering, copy and paste, homepage as well as bookmarking.
In addition I have added a fix for session restore where the URL was not correctly deserialized again.
This fixes #510 (closed).
Edited by Guido Berhörster