tls: Use custom IO to read from the URLContext