type cast encoded data to sting