Handle newlines correctly, doh!