@staticmethod
def sanitize(payload):
    """
        Sanitize raw input payload to make decoding not croak.

        >>> BERadioProtocolBase().sanitize('hello_message\\0\\r\\n ')
        'hello_message'
        """
    return payload.strip('\x00\r\n ')
