Add typewise encoding option to levelup.