Work around getline() bug on FreeBSD 8.0.