fixes #9 with url.ResolveReference()