in reply to Unwanted character in output file

Have you been through the Basic debugging checklist yet?

If you have and you still require specific help then it would boost your cause immensely to provide a Short, Self-Contained, Correct Example.