set encoding during listdeps

fixes #241