Allows templates to be compiled when they contain a tilde (~). Left the larger problem of actually resolving urls, possibly using a VirtualPathProvider, alone.