pub fn hostname_to_ascii(hostname: &str) -> Option<GString>