Fix renderUrl to work with webservers that provide correct MIME types