Fix a misuse of strncasecmp(3).
Drop UTF-16 write (4334a82 continued).