Fix failure to match a window-name having parentheses

The windowname is used in a regular expression, so parens and other
regex special characters need to be escaped/replaced.

e.g. u'frmfavicon.ico (16\xd716) - Foo'