kernel: Use the WinXP method for comparing strings with embedded NULLs. Update tests.