Try to pull encode dir from config.