fix encode string with none simple type bug