fix issue #704, replacing variables in gcode file damaging line at file offset 2048
Merge pull request #712 from hg42/fix-issue-704-replacegcodetags-workaround

fix issue #704, replacing variables in gcode file damaging line at file ...