Report replace string error

Check replacing string in constructor of `re2_filter`, and report error.
fix #54