added collaborator
extracted encode_remove_eol as function [ci skip]