Prevent insert_lines from being treated as regex

Fixes RM #2083, #1898
Merge pull request #528 from baptr/insert_lines-regex

Prevent insert_lines from being treated as regex