Please ignore this question. The ctrl-Gs are added by the box I am connecting to, maybe to show color or something in some terminals. The command was just incorrect. I was assuming the ctrl-Gs were the problem, they were just the result of another problem.