Make sure all parts of an URI is encoded.