[keys escaping] Additionnal fix

The escaping was not Ok with CLI and TXT formats. I have also added an example. ;)