Fixed munging URI with a domain or scheme