update splitHeaders function

function splitHeaders changed in order to handle mail header lines starting with tabs or using the encoded-word notation