On the hostname bit, would the change below be right for utf8 hostnames per the docs -- even if my wondering about non-ascii is answered by the fact the two funcs currently reject non-ascii entirely! (The filename.t passes with or without the xs change, it just avoids the dreaded never-executed code ... :)
Attachment:
filename-uri-utf8.diff
Description: Text Data