Fixed regex replace quoting bug.