a first attempt to make encoding under gnu/linux less painful