def _decodeASCII(string):
    """Returns an ASCII decoded version of the null terminated string.
    Non ASCII characters are ignored."""
    return str(string.decode("ascii", "ignore").split("\0", 1)[0])