Use only lower case characters in log filenames

In log filenames, at least the channel name / nickname in queries should be written in lower case, as IRC is case insensitive. This fixes an issue where an IRC client sending to channel #FooBar creates separate log files from a client sending to channel #foobar.