#856 When replacing contents with regexp, escaping replacements