Allow for space chars in url path.

Fixes #368 

Allow for space characters in history and URL

- History regex now allows for space characters
- Fix bug in update-token-ids! where nil values where encoded to "null" and therefore placed in url/history