Added logic to convert first to URI before executing toURL so that
special characters like ## (which are used in tomcat parallel deployment
paths) don't cause issues.  If you are using tomcat parallel deployment
with the previous version of the code you aren't able to load the
sitemesh.xml file.