Add backslash escaping to string formatting.