BUG: convert replacement tuples to lists

This fixes a bug that makes it appear as if replace is incorrectly using
regular expressions.