Fixes RegExp replacement stringification

i.e. issue #450