More tests for toUrl function
Make toUri sanitise all characters needed
Merge pull request #165 from nagisa/uri-sanitise

Better sanitising for URIs