man.t: strip ansi escape codes

On FreeBSD the `ack --man` output read by man.t contains ANSI escape
codes, which breaks the test.  Update strip_special_chars to also
strip ANSI escape codes, fixing the test on FreeBSD.