Fixed error in url() function

Sometimes url() function produced URL with unnecessary slash, eg.
`http://dalerium.net//` - that's fixed.