Improved error checking to prevent exceptions, renamed GetURL -> GetUrl and URLEscape -> UrlEscape