Trimming of URI tag contents.

Made change in toURI to trim the string before converting it to a URI.

This is helpful with human formated XML:

<uriTag>
      http://www.this.url.wont.parse/because.of/whitespace.html
</uriTag>