on second though, we only ever print unknown strings from strerror here, which should be ascii only? so using our already existing escaping of quotes and control characters should be enough... will send a v3 that combines these things and drops the dependency on json-c...