def read_lwostring(raw_name):
    """Parse a zero-padded string."""
    i = raw_name.find(b'\x00')
    name_len = i + 1
    if name_len % 2 == 1:
        name_len += 1
    if i > 0:
        name = raw_name[0:i].decode('utf-8', 'ignore')
    else:
        name = ''
    return name, name_len
