Test encoding option