log: Canonialize window names

Let's say someone is known on IRC as 'Nick' and as 'nick'. This will result in
two different log files being created for this person.

Work around this by turning all nicks lower-case.

(Idea by w00t, so don't blame me :-P)