remove \r\n at the end of encoder jobtmplate