use sub/gsub only with perl=TRUE or fixed=TRUE (bug #181)