support https: and data: protocols