Convert an unencoded source uri to an encoded module name

def uri2module(self, uri):
        """Convert an unencoded source uri to an encoded module name"""
        # uri is the source code of the module
        compressed = zlib.compress(uri)
        encoded = base64.b64encode(compressed, b'+&')
        encoded_str = encoded.decode('ASCII')
        return super(EncodedModuleLoader, self).uri2module(encoded_str)