convert char array recv from mochad to string