[PATCH] reg: Stop parsing REG_SZ values containing NUL character sequences