Set :input-line-separator instead of chomping and handle undef return from IO::Socket::INET.get