[socket] fix get_local_data using MorseEncoder

TypeError as no `value` member, __str__() do the job.