Segmentation fault occurs at strcmp when system language setting is Japanese

I fixed this problem to resolve the problem reported in the appium project.
Please see https://groups.google.com/forum/#!topic/appium-discuss/D21wQJD92VY
I checked this fix works well both on Japanese language setting MacBook and on English language setting MacBook.