Escape window titles before `format-expand`ing them

To reproduce the bug addressed by this commit:

  (1) run `xterm -T '^\'` on the command line
  (2) call the stumpwm command `echo-windows`

Prior to this patch, an error would occur.