lib/string: escape_to_c uses 3 digits in the octal form \nn to avoid misinterpretation