[Fix #440] Use url.href instead of url.toString()
Merge pull request #444 from k88hudson/440

Use url.href instead of url.toString()