only pre-pending root for path fragments

Fixed the to function of UrlGenerator to only pre-pend a root when the path is not a full url but just a fragment.

Corrected the assertion, UrlGenerator doesn't urlencode

Fixed the indentation
Merge branch '4.2' of https://github.com/maddios/framework into 4.2

Conflicts:
	src/Illuminate/Routing/UrlGenerator.php