BUG: fix metacharacter replacement bug in DataFrame.replace()

closes #6777