encode complete string for decode:topic