string escape for logs