Avoid unsafe string concatenation with json, fix #37