Remove nroff cruft from query-replace.