decode bytes in dict_to_text()