Fix warning
Use GFile API in gtkutil_check_file instead of stat/access.

The latter functions expect codepage-encoded filenames on Windows but GLib's API returns filesystem-encoded paths, which on Windows are UTF-8. GLib API should be used to deal with GLib API results.

Also fixed leaks in two of the callers of gtkutil_check_file()

Fixes #968
Use glib to get portable mode dir

This should fix any non-ascii paths
Fix using negative index
Fix DOMAIN and EMAIL patterns.

Closes #1107
Fix opening utf8 urls on OSX

- Escape hostnames with punycode
- Use proper encoding when launching open
Detect utf8 urls

They might not be valid, but like many things they are still used
Correctly open URLs with non-ASCII characters on Windows.

Fixes #1023
Use PlaySoundW to play sounds on Windows.

Fixes #1133
Replace some unsafe usage of strncpy

Ensure everything is null terminated
Increase max len of chiper names

For example ECDHE-ECRSA-AES256-GCM-SHA384
Fix missing header

And just use g_snprintf() while at it..
Fix attempting to toggle visibility when tray disabled
Fixed instances of hexchat_printf that unsafely used a string parameter as a format string.

Fixes #1153
Fix parsing of MONITOR responses

Fixes #1157
Fix textbox not scrolling to to bottom on resize

Set buf->scrollbar_down conditionally when vertically resizing text window
If resize to enlarge appears to go to last line, set buf->scrollbar_down to be sure.

Fixes #1151
Closes #1171
configure: Fix checking for perl

Closes #1196
Fixes #1197
ssl: Don't use global openssl context

Fixes #789
ssl: Use more secure options

This disables ssl 2/3
ssl: Validate hostnames

Closes #524