Text cleanup, safer loading of resources under HTTPS