Properly quote regular expression inputs to StringBlockEditor