Fixing JSON encoding code to include among other TAB (%T <-> \t)