readline: treat bare \r as a line ending

Fixes #3305