BUG: convert replacement tuples to list in recursive call

This avoids the seeming passage of regular expressions

closes #5143.