escaping embedded %'s so syslog won't barf