Migrate from Mariadb 10.1 to Percona XtraDB Cluster

Hi,
I need to migrate DB from Mariadb 10.1 to Percona XtraDB Cluster. Right now I have simple master-slave replication and want to migrate to atleast 3 nodes multimaster PXC. The question is how to do it safely. I guessing that first I should attach slave node of Percona or PXC in proper version, stop old master and change slave to become master, then update it to newest version of PXC and create cluster. That is my guess. I’m open for any suggestion.