In case you just want to add/remove carriage return, you can use the following instead of dos2unix...
Add carriage return (from UNIX to DOS):
sed -ie "s/$/\r/" file
Remove carriage return (from DOS to UNIX)
sed -ie "s/\r//" file
Answer based on Thunderbird's reply -- I didn't understand the question.