test encoding option