Make u8_gets_x better handle no-delimiter cases