use ruby URI class for String.to_domain