Update directory-encoder
Fix #175