Generic encoding code added.
Merge branch 'develop' of github.com:omnea/dirscan into develop