[RLVa] Escape potentially dirty strings before using them as regex in replace_all_regex

Fixes crashes
This changeset is welcome for use in LGPL viewers

Thanks to Ansariel Hiller for pointing this crash out.