def _read_string_array(data):
    """
    Helper function taking a string data set and preparing it so it can be
    read to a BytesIO object.
    """
    return data[()].tostring().strip(b'\x00 ').strip()
