[ASan] Use more appropriate return types for strlen/wcslen to avoid MSVC warnings