Send a raw string with the CR-LF appended to it.
        Required arguments:
        * msg - Message to send.
        Optional arguments:
        * error_check=False - Check for errors.
        If an error is found the relevant exception will be raised.

def send(self, msg, error_check=False):
        """
        Send a raw string with the CR-LF appended to it.
        Required arguments:
        * msg - Message to send.
        Optional arguments:
        * error_check=False - Check for errors.
        If an error is found the relevant exception will be raised.
        """
        with self.lock:
            msg = msg.replace('\r', '\\r').replace('\n', '\\n') + self._crlf
            try:
                data = msg.encode(self.encoding)
            except UnicodeEncodeError:
                data = msg.encode(self.fallback_encoding)
            if len(data) > 512:
                raise self.MessageTooLong("LurklibError: MessageTooLong")
            self._socket.send(data)
            if error_check and self.readable():
                self._recv()
                self.stepback()