Change where we look for copy of IANA charset reg
Add support for <main>.