Transformation of categorical variables
You can just convert them into factors if your random forest algorithm is accepting that .Usually one hotting the categorical variables are not suggested
Here is the an article gives information about categorical variables in Random Forest