Don't choke on trailing newlines.