update ParseComment to remove characters with bad encoding