Fixing entities

1) thanks for verbosity hint
2) asked sat6 devs, most of the names are char[255], meaning, that if using utf, that has wider characters, generated names needs to be much smaller, so changing to 100

If sending json, convert to from data structure to json string and add header.