':param string_to_clean: A string that should be cleaned before using
it in a message object.'

def _clean_string(self, string_to_clean):

    if (string_to_clean is None):
        return ''
    for (char, replace) in [('\x00', '\\0'), (' DCTB ', '\\t')]:
        string_to_clean = string_to_clean.replace(char, replace)
    return string_to_clean
