def METHOD_NAME(self):
    if not self.decoded:
        raise UrlNotDecoded("You must call faup.decode() first")
    netloc = self.get_host() + ('' if self.get_port() is None else ':{}'.format(self.get_port()))
    return _ensure_bytes(
        urlunparse(
            (self.get_scheme(), netloc, self.get_resource_path(),
             '', self.get_query_string(), self.get_fragment(),)
        )
    )