def quote_mos(s: str, max_length: int=5000) ->str:
    """ Get Mosel source code representation of a string, without type or bound checking. """
    if '\x00' in s:
        raise ValueError("Null character '\\0' not allowed in string: {}".
            format(repr(s)))
    if len(s) > max_length:
        raise ValueError(
            'The string must not be longer than {} characters: {}.'.format(
            max_length, repr(s)))
    result = s.replace('\\', '\\\\').replace('"', '\\"').replace('\n', '\\n'
        ).replace('\r', '\\r').replace('\t', '\\t')
    return '"' + result + '"'
