Escape log lines

As discussed in #5