recursive string escaping fix

 Issue #562