Escape log lines

As discussed in #5
I realized we could probably be a lot more precise with this calculation since we know the length of almost all the strings we're going to be appending, it might save us a buffer grow allocation in some cases, but I'm not sure if it's worth it. Something to look in to more if you have time :)