wrapper: add function to compare strings with different NUL termination