Trimming of URI tag contents.

Trimming of URIs. This really helps with human-formated XML where <TAG>\n\t\t\t_URI_\n</TAG> exists but is still 'legal'